﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000020 RID: 32
	public class InterfaceDictionaryFormatter<TKey, TValue> : DictionaryFormatterBase<TKey, TValue, Dictionary<TKey, TValue>, IDictionary<TKey, TValue>>
	{
		// Token: 0x06000078 RID: 120 RVA: 0x00003044 File Offset: 0x00001444
		protected override void Add(Dictionary<TKey, TValue> collection, int index, TKey key, TValue value)
		{
			collection.Add(key, value);
		}

		// Token: 0x06000079 RID: 121 RVA: 0x0000304F File Offset: 0x0000144F
		protected override Dictionary<TKey, TValue> Create(int count)
		{
			return new Dictionary<TKey, TValue>(count);
		}

		// Token: 0x0600007A RID: 122 RVA: 0x00003057 File Offset: 0x00001457
		protected override IDictionary<TKey, TValue> Complete(Dictionary<TKey, TValue> intermediateCollection)
		{
			return intermediateCollection;
		}
	}
}
